package com.apkplug.test.bundle;

import android.view.View;
import android.widget.TextView;

import org.apkplug.Bundle.ApkplugOSGIService;
import org.osgi.framework.BundleContext;

/**
 * Created by bshao on 12/28/15.
 */
public class MainViewService implements ApkplugOSGIService {
    @Override
    public Object ApkplugOSGIService(BundleContext bundleContext, String s, int i, Object... objects) {
        View parent = (View) objects[0];
        final TextView textView = new TextView(parent.getContext());
        textView.setText("hahaha");
        return textView;
    }
}
